package com.meiyou.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.meiyou.mapper.JubaoMapperCustom;
import com.meiyou.pojo.JuBao;
import com.meiyou.service.JubaoService;

@Service("JubaoService")
public class JubaoServiceImpl implements JubaoService{

	
	@Autowired
	JubaoMapperCustom jubaoMapperCustom;
	
	
	public int insertJubao(JuBao jubao) {
		// TODO Auto-generated method stub
		return jubaoMapperCustom.insertJubaoXinxi(jubao);
	}

	
	public List<JuBao> selectJubaoAll(JuBao jubao) {
		// TODO Auto-generated method stub
		return jubaoMapperCustom.selectJubaoAll(jubao); 
	}

	
	public int updateJubao(JuBao jubao) {
		// TODO Auto-generated method stub
		return jubaoMapperCustom.updateJubaoXinxi(jubao); 
	}

	
	public int deleteJubao(int id) {
		// TODO Auto-generated method stub
		return jubaoMapperCustom.deleteByKey(id);
	}

	
	public JuBao selectById(int id) {
		// TODO Auto-generated method stub
		return jubaoMapperCustom.selectByJuBao(id);
	}
}
